.forgottenPage {
  margin: 0 auto;

  .pageHeader {
    margin-bottom: 32px;

    h1 {
      margin: 0;
      color: #333;
      font-size: 28px;
      font-weight: 600;
    }
  }

  .loading {
    text-align: center;
    padding: 60px 20px;

    .spinner {
      width: 40px;
      height: 40px;
      border: 4px solid #f3f3f3;
      border-top: 4px solid #007bff;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 20px;
    }

    p {
      color: #666;
      font-size: 16px;
    }
  }

  .error {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;

    p {
      color: #dc3545;
      font-size: 16px;
      margin-bottom: 20px;
    }

    .retryBtn {
      background: #dc3545;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
      transition: background-color 0.2s;

      &:hover {
        background: #c82333;
      }
    }
  }

  .emptyState {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;

    p {
      color: #666;
      font-size: 16px;
      margin: 0;
    }
  }

  .filesList {
    .fileRow {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 2px 0;
      border-bottom: 1px solid rgb(226, 226, 226);

      &:last-child {
        border-bottom: none;
      }

      .fileName {
        font-size: 12px;
        font-weight: 400;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        margin-right: 16px;
      }

      .downloadBtn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;

        &:hover {
          opacity: 0.7;
        }

        &:disabled {
          cursor: not-allowed;
        }

        .downloadIcon {
          width: 24px;
          height: 24px;
        }
      }
    }
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

// Responsive design
@media (max-width: 768px) {
  .forgottenPage {
    // padding: 15px;

    .pageHeader {
      flex-direction: column;
      gap: 15px;
      align-items: flex-start;

      h1 {
        font-size: 24px;
      }
    }

    .filesList {
      .fileRow {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;

        .fileName {
          margin-right: 0;
          margin-bottom: 8px;
        }

        .downloadBtn {
          align-self: flex-end;
        }
      }
    }
  }
}
